﻿using System;
using Autodesk.Revit.Attributes;
using Autodesk.Revit.DB;
using Autodesk.Revit.UI;
using YJKInspectModel.ModelValidation.ClearHeightCheck;

namespace YJKInspectModel.ModelValidation.Commands
{
	[Transaction(TransactionMode.Manual)]
	[Regeneration(RegenerationOption.Manual)]
	internal class ClearHeightPlanRefreshCmd : IExternalCommand
	{
		public Result Execute(ExternalCommandData commandData, ref string message, ElementSet elements)
		{
			new ClearHeightCheckFun(commandData.Application).RefreshClearHeightPlan();
			return Autodesk.Revit.UI.Result.Succeeded;
		}
	}
}
